webpackJsonp([26],{

/***/ "KS/w":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ "ibB2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/law/link.vue


//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var law_link = ({
  data: function data() {
    return {
      data: null
    };
  },
  activated: function activated() {
    var _this = this;

    return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
      return regenerator_default.a.wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return commonApi["a" /* commonApi */].searchById('law_plan', _this.$route.query.id, {
                include: ['programme_id']
              });

            case 2:
              _this.data = _context.sent;

            case 3:
            case 'end':
              return _context.stop();
          }
        }
      }, _callee, _this);
    }))();
  },

  methods: {
    onClick: function onClick(path) {
      this.$router.$push({
        path: '/law/' + path,
        query: this.$route.query
      });
    },
    onClickReview: function onClickReview(state) {
      var currentState = this.getClass(state);
      if (currentState === 'is-complete') return;
      this.$Toast('请联系相关角色至pc端审核后，继续下一步！', 'tool');
    },
    getClass: function getClass(state) {
      if (!this.data) return;
      var COMPLETE = 'is-complete';
      var ACTIVE = 'is-active';
      switch (state) {
        case 0:
          if (this.data.state > 0) {
            return COMPLETE;
          } else {
            var auditState = this.data.programme_id.attributes.auditState;
            if (auditState === undefined) {
              return ACTIVE;
            } else {
              return COMPLETE;
            }
          }
        case 1:
          if (this.data.state > 0) {
            return COMPLETE;
          } else {
            var _auditState = this.data.programme_id.attributes.auditState;
            if (_auditState === undefined) {
              return '';
            } else if (_auditState === 0) {
              return ACTIVE;
            } else {
              return COMPLETE;
            }
          }
        case 2:
          if (this.data.state === 1) {
            return ACTIVE;
          } else if (this.data.state > 1) {
            return COMPLETE;
          } else {
            return '';
          }
        case 3:
          if (this.data.state === 2) {
            return ACTIVE;
          } else if (this.data.state > 2) {
            return COMPLETE;
          } else {
            return '';
          }
        case 4:
          if (this.data.state === 3) {
            return ACTIVE;
          } else if (this.data.state > 3) {
            return COMPLETE;
          } else {
            return '';
          }
        case 5:
          if (this.data.state === 5 || this.data.state === 7) {
            return ACTIVE;
          } else if (this.data.state === 6) {
            return COMPLETE;
          } else {
            return '';
          }
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-b55e6d22","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/law/link.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{staticClass:"lawLink",attrs:{"scroll":"","title":"任务状态"}},[_c('div',{staticClass:"row",class:_vm.getClass(0),attrs:{"first":""},on:{"click":function($event){return _vm.onClick('programme')}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-fanganshenqing_huaban"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("现场检查方案")])]),_vm._v(" "),_c('div',{staticClass:"row",class:_vm.getClass(1),on:{"click":function($event){return _vm.onClickReview(1)}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-querenhetongquerenhetongqueding"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("检查方案确认")])]),_vm._v(" "),_c('div',{staticClass:"row",class:_vm.getClass(2),on:{"click":function($event){return _vm.onClick('record')}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-jilu"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("现场检查记录")])]),_vm._v(" "),_c('div',{staticClass:"row",class:_vm.getClass(3),on:{"click":function($event){return _vm.onClick('rectify')}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-jingshigantanhao"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("责令限期整改")])]),_vm._v(" "),_c('div',{staticClass:"row",class:_vm.getClass(4),on:{"click":function($event){return _vm.onClickReview(4)}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-dkw_shenhezhong"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("责令整改审核")])]),_vm._v(" "),_c('div',{staticClass:"row",class:_vm.getClass(5),attrs:{"last":""},on:{"click":function($event){return _vm.onClick('review')}}},[_c('span',{staticClass:"row-icon"},[_c('i',{staticClass:"iconfont icon-icon-chakanxq"})]),_vm._v(" "),_c('div',{staticClass:"row-text"},[_vm._v("\n      整改复查任务\n    ")])]),_vm._v(" "),_c('yt-split'),_vm._v(" "),_c('yt-cell',{attrs:{"isLink":"","ripple":"","label":"现场处理措施","font":"iconfont icon-neirong","labelWidth":"100px"},on:{"click":function($event){return _vm.onClick('disposal')}}}),_vm._v(" "),_c('yt-cell',{attrs:{"isLink":"","ripple":"","label":"查封扣押处置","font":"iconfont icon-cheliangdiyadengji","labelWidth":"100px"},on:{"click":function($event){return _vm.onClick('detain')}}})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var anjian_law_link = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/law/link.vue
function injectStyle (ssrContext) {
  __webpack_require__("KS/w")
}
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-b55e6d22"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  law_link,
  anjian_law_link,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var common_anjian_law_link = __webpack_exports__["default"] = (Component.exports);


/***/ })

});